DEBUG = FALSE
#TRUE
ifeq ($(DEBUG), TRUE)
	CFLAGS ?= -g -Wall -O0 -D_DEBUG_ -fno-stack-protector -lpthread
else
	CFLAGS ?= -g -Wall -O0 -fno-stack-protector -lpthread
endif

MEMWATCH = FALSE
ifeq ($(MEMWATCH), TRUE)
	INCDIR += $(ROOTDIR)/package/debug/memwatch/
	SOURCE += $(ROOTDIR)/package/debug/memwatch/
	CFLAGS += -rdynamic -D_MEMWATCH_ -DMEMWATCH -DMEMWATCH_STDIO
endif

CORE_DUMP = FALSE
ifeq ($(CORE_DUMP), TRUE)
	INCDIR += $(ROOTDIR)/package/debug/core_dump/
	SOURCE += $(ROOTDIR)/package/debug/core_dump/
	CFLAGS += -rdynamic -D_CORE_DUMP_
endif

